#ifndef  __M_SOFTINT_H
#define  __M_SOFTINT_H


#define  s8   signed char
#define  s16  signed short int
#define	 s32  signed int 
#define	 u8   unsigned char 
#define	 u16  unsigned short int 
#define	 u32  unsigned int 
	


extern  void  __EI(void);
extern  void  __DI(void);
extern  void  MC_Para_Init(void);
extern  void  GET_ADCREF_VAL(void);
extern  void  MC_IBUS_SAMP(void);
extern  void  DelayTime_ms(u32 delay);


typedef	union
{
	unsigned char Byte;
	struct
	{
		unsigned char	Bit0	:1;
		unsigned char	Bit1	:1;
		unsigned char	Bit2	:1;
		unsigned char	Bit3	:1;
		unsigned char	Bit4	:1;
		unsigned char	Bit5	:1;
		unsigned char	Bit6	:1;
		unsigned char	Bit7	:1;
	}Bits;
}ByteFlag;

extern  ByteFlag				Time_Flag;
#define TimeFlag		    	Time_Flag.Byte
#define	TimeFlag_1ms			Time_Flag.Bits.Bit0
#define	TimeFlag_10ms			Time_Flag.Bits.Bit1
#define	TimeFlag_100ms			Time_Flag.Bits.Bit2
#define	TimeFlag_1s			 	Time_Flag.Bits.Bit3
#define	TimeFlag_2s			    Time_Flag.Bits.Bit4
#define	TimeFlag_1us			Time_Flag.Bits.Bit5
#define	TimeFlag_10us			Time_Flag.Bits.Bit6
#define	TimeFlag_100us			Time_Flag.Bits.Bit7

#endif
